package wdt_qf.entity.qf.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class ResultData<T> implements Serializable {
    private int code;
    private String message;
    private T data;
    public ResultData(int code, String message) {
        this(code, message, null);
    }
}
